package com.googlecode.rjm.model.custom;

import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.ForceDiscriminator;

import com.googlecode.rjm.model.Persistent;

@Entity
@Table(name = "custom_fields")
@DiscriminatorColumn(name = "type")
@ForceDiscriminator
public abstract class CustomField extends Persistent {

	private static final long serialVersionUID = 1L;

	@Id
	private Integer id;

	private String name;

	@Column(name = "field_format")
	private String fieldFormat;

	@Override
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFieldFormat() {
		return this.fieldFormat;
	}

	public void setFieldFormat(String fieldFormat) {
		this.fieldFormat = fieldFormat;
	}

}
